<?php
session_start();

if(!isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']){
    //说明isAdmin不存在或者为0
    echo "<script>alert('请于管理员的身份登入'); location.href= 'login.php';</script>";
    exit();
}